package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.RscAdjustBill;
import com.fdb.efp.nls.service.vo.RscAdjustBillVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:风险分类调整借据表				<p>
 * @author chenqm1
 * @date 2018-05-07
 */
public interface RscAdjustBillDao {
	
	public int insertRscAdjustBill(@Param("RscAdjustBillVo") List<RscAdjustBillVO> rscAdjustBillVo);
	
	public int deleteByPk(RscAdjustBill rscAdjustBill);
	
	public int updateByPk(RscAdjustBill rscAdjustBill);
	
	public RscAdjustBill queryByPk(RscAdjustBill rscAdjustBill);
	
	public List<RscAdjustBill> queryAllOwnerByPage(RscAdjustBillVO rscAdjustBill);
	
	public List<RscAdjustBill> queryAllCurrOrgByPage(RscAdjustBillVO rscAdjustBill);
	
	public List<RscAdjustBill> queryAllCurrDownOrgByPage(RscAdjustBillVO rscAdjustBill);

	public RscAdjustBill queryByRemove(RscAdjustBillVO rscAdjustBill);
	
	public void deleteByNO(String taskNo);
	
	public List<RscAdjustBill> queryAllOwnerByPageNo(String taskNo);

	public int insertRscBill(RscAdjustBillVO vo);
	
	public int updateByTaskNo(RscAdjustBill rscAdjustBill);

	public int rscAdjustBillCusHandOver(@Param("fromUser") String fromUser, @Param("toUser") String toUser, @Param("fromBrId") String fromBrId, @Param("toBrId") String toBrId, @Param("cusIds") List<String> cusIds);

	//查询用户权限数据——解除风险分类
	public List<RscAdjustBill> queryRemoveOwnerByPage(RscAdjustBillVO rscAdjustBillVO);
	//查询当前机构权限数据——解除风险分类
	public List<RscAdjustBill> queryRemoveCurrOrgByPage(RscAdjustBillVO rscAdjustBillVO);
	//查询当前机构及下属机构权限数据——解除风险分类
	public List<RscAdjustBill> queryRemoveCurrDownOrgByPage(RscAdjustBillVO rscAdjustBillVO);
	//判断借据号是否已通过审核
	public  List<String> queryBillNo();

}
